package t327.mapper;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import t327.pojo.OrderForm;
import t327.pojo.Submission;

import java.util.List;

public interface SubmissionMapper {
    int addSubmission(Submission submission);
    //查询裁剪添加的产量
    @Select("select * from submission where department_id=1 and logic_del=logic_del=0")
    Submission querysubmission();

    @Select("select * from order_form where quotation_number=#{arg0} and logic_del=logic_del=0")
    List<OrderForm> queryOrder(String quotationNumber );

    @Update("update submission set logic_del=1 where id=#{arg0}")
    int delSubmission(Long id);
    @Update("update submission set produced_count=#{arg0} where id=#{arg1}")
    int upSubmission(Long producedCount,Long id);
}
